
function initState() {
  return {

    //权限
    authority: ['YYFZJ'],

    // 用户信息
    user: {
      "userId": "12312",
    },

  }
}

export default {

  namespace: 'user',
  state: { ...initState() },
  effects: {
  },

  reducers: {
    setState(state, action) {
      return { ...state, ...action.payload };
    },
    init(state, action) {
      return { ...initState() }
    }
  },

};
